<script setup>
import FanSwitch from '..';
import { ref } from 'vue';

const show = ref(false);

const onChange = () => {
  console.log(show.value);
};
</script>

<template>
  <demo-block title="基础用法">
    <FanSwitch v-model="show" @change="onChange"></FanSwitch>
  </demo-block>
</template>
